package com.jy.bo.common.conf.enums;

/**
 * Created with IntelliJ IDEA.
 * User: binary (mr.vencnet@gmail.com)
 * Date: 2020-06-08
 * Time: 17:12
 */
public enum TimeUnitEnum {
    MIN(1, "minute", "M"),
    HOUR(2, "hour", "H");

    private Integer type;

    private String desc;

    private String unit;

    TimeUnitEnum(Integer type, String desc, String unit) {
        this.type = type;
        this.desc = desc;
        this.unit = unit;
    }


    public String getUnit() {
        return unit;
    }

    public TimeUnitEnum setUnit(String unit) {
        this.unit = unit;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public TimeUnitEnum setType(Integer type) {
        this.type = type;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public TimeUnitEnum setDesc(String desc) {
        this.desc = desc;
        return this;
    }}
